Skip to content

P-2208: Harden github actions#28

Merged
keiloktql merged 1 commit into
mainfrom
keilok/harden-github-actions
May 21, 2026
Merged

P-2208: Harden github actions#28
keiloktql merged 1 commit into
mainfrom
keilok/harden-github-actions

Conversation

@keiloktql
Copy link
Copy Markdown
Member

@keiloktql keiloktql commented May 21, 2026

Hardens GHA workflows per Linear P-2208.

  • Deleted with-next-app-router/.github/workflows/lint.yaml (stale; nested path GHA never executes; pinned actions/checkout@master — a branch, not even a tag; kills 4 findings)
  • build.yml: added workflow-level permissions: contents: read (covers all 3 jobs); persist-credentials: false on all 3 checkouts; quoted $AUDIT_LEVEL in pnpm audit (SC2086 fix)
  • Verified pnpm/action-setup explicit version: 11

Refs P-2208.

🤖 Generated with Claude Code


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

- Delete with-next-app-router/.github/workflows/lint.yaml (stale; nested
  path GHA never executes; pinned actions/checkout@master)
- build.yml: add workflow-level permissions: contents: read
- build.yml: persist-credentials: false on all 3 checkouts
- build.yml: quote $AUDIT_LEVEL in pnpm audit (SC2086)

Refs P-2208.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 21, 2026

P-2208

@keiloktql keiloktql changed the title chore: harden GitHub Actions (P-2208) P-2208: Harden github actions May 21, 2026
@keiloktql keiloktql requested a review from yosriady May 21, 2026 02:04
@keiloktql keiloktql self-assigned this May 21, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request deletes the lint.yaml workflow file. The reviewer noted that the PR is incomplete because it lacks the hardening improvements and dependency updates mentioned in the PR summary, such as workflow-level permissions and the update to pnpm/action-setup@v11.

@@ -1,37 +0,0 @@
name: Lint
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The hardening improvements to build.yml (workflow-level permissions, persist-credentials: false, and the SC2086 fix) and the update to pnpm/action-setup@v11 described in the pull request summary are missing from the current diff. The pull request is incomplete relative to its stated objectives.

@keiloktql
Copy link
Copy Markdown
Member Author

@gemini-code-assist this review is mistaken — the build.yml hardening changes are present in the diff. See .github/workflows/build.yml in the PR:

  • L1–L4: workflow-level permissions: contents: read block added
  • L19–L21, L125–L127, L209–L211: persist-credentials: false added to all 3 actions/checkout steps (changes / build / audit jobs)
  • L233: pnpm audit --prod --audit-level="$AUDIT_LEVEL" — SC2086 quoting fix

gh pr view 28 --json files confirms two files changed: .github/workflows/build.yml (+10/-1) and the stale with-next-app-router/.github/workflows/lint.yaml (deleted, -37).

Re "update to pnpm/action-setup@v11" — that wasn't part of the P-2208 scope and isn't mentioned in the PR description. The action pnpm/action-setup is SHA-pinned to v6.0.8 (0e279bb959325dab635dd2c09392533439d90093); the pnpm version it installs is already explicitly set to 11 via with: version: 11 at L131 and L213, which the PR description calls out as verified.

@gemini-code-assist
Copy link
Copy Markdown

Thank you for the clarification, @keiloktql. I apologize for the oversight in my previous assessment. You are correct that the hardening changes for build.yml and the pnpm audit fix are indeed present in the diff as you described. I appreciate you pointing out the specific lines and confirming the pnpm/action-setup versioning. The PR looks solid and aligns with the requirements for P-2208.

@keiloktql keiloktql merged commit dfebc29 into main May 21, 2026
39 checks passed
@keiloktql keiloktql deleted the keilok/harden-github-actions branch May 21, 2026 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants